package io.renren.modules.frt.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.frt.dao.FamilyReport5Dao;
import io.renren.modules.frt.entity.FamilyReport5Entity;
import io.renren.modules.frt.service.FamilyReport5Service;


@Service("familyReport5Service")
public class FamilyReport5ServiceImpl extends ServiceImpl<FamilyReport5Dao, FamilyReport5Entity> implements FamilyReport5Service {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<FamilyReport5Entity> page = this.selectPage(
                new Query<FamilyReport5Entity>(params).getPage(),
                new EntityWrapper<FamilyReport5Entity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<FamilyReport5Entity> sumaryList(Long taskUserId, Long[] userIds){
    	Map<String, Object> params = new HashMap<>();
    	params.put("taskUserId", taskUserId);
    	params.put("userIds", userIds);
    	return baseMapper.sumaryList(params);
    }
    
}
